package com.example.datachange.model;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import javax.xml.bind.annotation.XmlRootElement;
import java.util.Date;

/**
 * 工单详情响应结果模型
 * @author Hao.
 * @version 1.0
 * @date 2022/4/28 10:14
 */
@Data
@XmlRootElement
public class WorkOrderDetailResult {

    private static final long serialVersionUID = 2736319901679011635L;

    private boolean success;

    private int code;

    private String message;

    private WorkOrderDetail workOrderDetail;

    private InspectionContent inspectionContent;

    @Data
    public static class WorkOrderDetail {

        private String equipmentId;

        private String area;

        private String roadName;

        private String type;

        @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
        private Date createTime;

        @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
        private Date updateTime;

        private String deptName;

        private String createName;

        private String createPhone;

        private String carNumber;

        private Integer status;

        private String alarmType;

        private String id;
    }

    /**
     * 巡检内容<br>
     *     PS：后期可能变更为动态字段
     * @author Hao.
     * @version 1.0
     * @date 2022/4/28 10:24
     */
    @Data
    public static class InspectionContent {

        private String crateEnectric;

        private String crateWarn;

        private String roadBuild;

        private String roadMarking;

        private String stnGj;

        private String stnZpsb;

        private String stnGjbs;

        private String ntsGj;

        private String ntsZpsb;

        private String ntsGjbs;

        private String content;
    }
}
